package com.mark.web.data.enums;

/**
 * @Description: 购物车的枚举类
 * @Author: Mark
 * @CreateDate: 2018/3/27.
 * @Version: 2.0
 * @Copyright : 豆浆油条个人非正式工作室
 */
public enum CartEnum {
    /**
     * LIMIT_NUM_SUCCESS：购物车的商品数量没有了库存量
     * LIMIT_NUM_FAIL：购物车中的商品数量没有超过库存量
     * CHECKED：选中
     * UN_CHECKED：没有被选中
     */
    LIMIT_NUM_SUCCESS(1,"LIMIT_NUM_SUCCESS"),
    LIMIT_NUM_FAIL(0,"LIMIT_NUM_FAIL"),
    CHECKED(1,"购物车中商品被选中状态"),
    UN_CHECKED(0,"购物车中商品没被选中状态");

    private int state;
    private String information;
    CartEnum(int state, String information) {
        this.state = state;
        this.information = information;
    }
    public int getState() {
        return state;
    }

    public String getInformation() {
        return information;
    }
}
